#ifndef SPL_H
#define SPL_H

#include <QWidget>
#include <QPixmap>
#include <QPaintEvent>

class spl : public QWidget
{
    Q_OBJECT

public:
    spl(QPixmap backg, QWidget *parent = 0);
    ~spl();
    void setAngle(int angle);
    void setText(QString txt, const QColor & color);
    void reDraw();

protected:
    void paintEvent(QPaintEvent *);

private:
    QPixmap background;
    int dwAngle;
    QString strText;
    QColor brushColor;
};

#endif // SPL_H
